package com.fjj.cs.vo.request;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;


@Data
public class PageRequestVO<T> implements java.io.Serializable {


  private static final long serialVersionUID = 5841886477502706641L;
  
  /**
   * 当前页
   */
  private Integer currentPage = 1;
  
  /**
   * 每页多少数据
   */
  private Integer pageSize = 10;

  /**
   * 获取分页需要Page
   *
   * @return
   */
  public Page<T> getPage() {
    return new Page<T>(currentPage, pageSize);
  }
}
